<!DOCTYPE HTML>
<html lang="en">
<#include "../common/head.html"/>
<body>
<section class="content">
  <#include "../common/messageTip.html"/>
  <div class="row">
    <div class="col-md-6 col-md-offset-3">
      <div class="box box-primary">
        <div class="box-header with-border">
          <h3 class="box-title">${(!admin.id??)?string('添加','修改')} 管理员</h3>
        </div>
        <div class="box-body">
          <form class="form-horizontal js-ajax-form" action="/console/admin/merge" method="post">
            <input type="hidden" name="id" value="${admin.id!}"/>
            <div class="form-group">
              <label class="col-sm-2 control-label">名字</label>
              <div class="col-sm-10">
                <input type="text" name="username" class="form-control" value="${admin.username!}"/>
              </div>
            </div>

            <div class="form-group">
              <label for="password" class="col-sm-2 control-label">密码</label>
              <div class="col-sm-10">
                <input type="password" name="password" class="form-control" id="password"/>
              </div>
            </div>
            <div class="form-group">
              <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">提交</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</section>
<#include "../common/footer.html"/>
</body>
</html>